import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './routes'
// import store from '@/store'

Vue.use(VueRouter)

const router = new VueRouter({
  routes
})
// router.beforeEach((to, from, next) => {
//   const { isBackShow, title } = to.mate
//   store.commit('changeIsBackShowAndTile', { isBackShow, title })
//   next()
// })
export default router
